

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
<script type="text/javascript" src="helpman_topicinit.js"></script>

<title>Import Controlled Model Branch [Enterprise Architect User Guide]</title>

<meta name="keywords" content="Enterprise Architect, Sparx Systems, UML, Version Control,Version Control Import Model Branch,Version Control Configuration,Model Branch,Model Branch Import,Import,Import Version Controlled Model Branch,Import .EAB File,Package,Package Import Version Controlled Model Branch,EAB File,EAB File Import">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta http-equiv="Content-Style-Type" content="text/css" />

<link type="text/css" href="default.css" rel="stylesheet" />
<style type="text/css">
  A, A:Visited
  {
    color: #00F;
  }

  A:Active, A:Hover
  {
    color: #F00;
  }

  OL
  {
    margin: 5px 0 5px 48px;
  }

  UL
  {
    margin-bottom: 3px;
    margin-top: 0;
  }

  #nsr
  {
    background-color: #D4DFFF;
  }

  #nsr A
  {
    text-decoration: none;
  }

  #mainbody
  {
    padding: 8px;
  }

  .p_BodyText
  {
    padding: 5px 0;
  }
</style>



<style type="text/css" media="screen">
  BODY
  {
    background-color: #FFFFFF;
  }

  #nsr
  {
    padding: 6px 6px 0 6px;
    border-bottom: none;
    vertical-align: top;
    z-index: 2;
    visibility: visible;
    left: 0;
    top: 0;
    position: absolute;
  }

  #mainbody
  {
    left: 0;
    top: 0;
    margin: 0;
    position: absolute;
    padding: 10px;
    overflow: auto;
    height: 100%;
    z-index: 1;
    background-repeat: no-repeat;
    background-position: bottom right;
    background-attachment: fixed;
  }
</style>

<style type="text/css" media="print">
  #nsr
  {
    visibility: none;
  }

  #mainbody
  {
    overflow: visible;
  }
</style>
<script type="text/javascript" language="JavaScript" src="nonscroll.js"></script>

</head>
<body scroll="no">

<div id="page">



        <div id="content">
          <div id="content-inner">
          



  
          <div id="nsr">
            <table border="0" cellspacing="0" cellpadding="4" width="100%">
              <tr valign="top">
                <td align="left">
  


                  <p class="p_Heading1"><span class="f_Heading1">Import Controlled Model Branch</span></p>



  
                </td>
                <td align="right">
                  <a href="introduction.htm" onmouseover="document.images.main.src='button_main_h.gif'" onmouseout="document.images.main.src='button_main.gif'">
                    <img name="main" src="button_main.gif" border=0 alt="Return to Introduction">
                  </a>&nbsp;
    
                  <a href="exportingvcbranches.htm" onmouseover="document.images.prev.src='button_prev_h.gif'" onmouseout="document.images.prev.src='button_prev.gif'">
                    <img name=prev src="button_prev.gif" border=0 alt="Previous page" />
                  </a>&nbsp;
    
    
    
                  <a href="reviewpackagehistory.htm" onmouseover="document.images.next.src='button_next_h.gif'" onmouseout="document.images.next.src='button_next.gif'">
                    <img name=next src="button_next.gif" border=0 alt="Next page" />
                  </a>
    
    
                </td>
              </tr>
            </table>
          </div>
          <div id="mainbody">
  


                <p class="p_BodyText"><span class="f_BodyText">It might be necessary to either:</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">Retrieve a model branch created by another user in a private copy of a model, to import it into your own private copy of the same model or</span></li>
<li><span class="f_Bulletlist1">Retrieve a model branch that is common in many models, for inclusion in a new model.</span></li>
</ul>
<p class="p_BodyText"><span class="f_BodyText">Applying version control to an Enterprise Architect model can result in many XMI files placed under version control. It could then be hard to locate and import the file corresponding to the root of a particular model branch. Enterprise Architect's Model Branch files overcome this problem by simplifying the retrieval of model hierarchies for use in other models.</span></p>
<p class="p_BodyText"><span class="f_BodyText">The </span><span class="f_MenuKeyField">Import a Model Branch</span><span class="f_BodyText"> context menu option uses Enterprise Architect's Model Branch Files, of which there are few, to retrieve information about the root package file and import the model branch. The Model Branch File records information such as the name and type of the version control configuration for the selected package, and the relative filename of the version controlled XMI file associated with the package.</span></p>
<p class="p_BodyText"><span class="f_BodyText">Before attempting to import a model branch, you must have access to the version controlled XMI files that represent the model branch to be imported. That is, there must be a working copy folder, accessible from the machine on which Enterprise Architect is running, that is associated with the Version Control repository containing those XMI files.</span></p>
<p class="p_BodyText"><span class="f_BodyText">It is not necessary to have the relevant Version Control Configuration set up within Enterprise Architect before issuing this command - Enterprise Architect prompts you to complete specification of the configuration if necessary.</span></p>
<p class="p_BodyText"><span class="f_BodyText">The </span><span class="f_MenuKeyField">Import a Model Branch </span><span class="f_BodyText">context menu option is only enabled for packages that you (the current user) are able to edit, as the imported model branch is inserted into the model under the selected package.</span></p>
<p class="p_BodyText"><span class="f_BodyText">To import a model branch, follow the steps below:</span></p>
<ol style="text-indent: 0px; margin-left: 48px; list-style-position: outside;">
<li value=1><span class="f_NumberedList">Right-click on the package into which the model branch is to be imported.</span></li>
<li value=2><span class="f_NumberedList">Select the </span><span class="f_MenuKeyField">Package Control | Import a Model Branch</span><span class="f_NumberedList"> context menu option. The </span><span class="f_UIControl">Import VC Model Branch</span><span class="f_NumberedList"> dialog displays.</span><br>
<span class="f_NumberedList">&nbsp;</span><br>
<img src="dlg-importvcmodelbranch_1.png" width="425" height="477" border="0" alt="Dlg-ImportVCModelBranch_1"><br>
<span class="f_NumberedList">&nbsp;</span></li>
<li value=3><span class="f_NumberedList">Either:</span></li>
</ol>
<ul style="text-indent: 0px; margin-left: 65px; list-style-position: outside;">
<li><span class="f_Bulletlist3">Click on the </span><span class="f_MenuKeyField">Find a Model Branch (.EAB) file </span><span class="f_Bulletlist3">button and browse for the Model Branch File. If the version control configuration used by the file has not been fully set up, Enterprise Architect prompts you to complete and save the configuration. The model branch import then proceeds. OR</span></li>
<li><span class="f_Bulletlist3">If the version control configuration used by the file has been fully set up in the current model, click on the drop-down arrow in the </span><span class="f_MenuKeyField">Select a Version Control Configuration</span><span class="f_Bulletlist3"> field and select the configuration, then select the Model Branch File from the</span><span class="f_NumberedList"> </span><span class="f_MenuKeyField">Select a Model Branch (.EAB)</span><span class="f_NumberedList"> </span><span class="f_Bulletlist3">file list. Click on the</span><span class="f_NumberedList"> </span><span class="f_MenuKeyField">OK</span><span class="f_NumberedList"> </span><span class="f_Bulletlist3">button to import the model branch.</span></li>
</ul>
<p class="p_BodyText"><span class="f_BodyText">Enterprise Architect imports the root package specified in the Model Branch File and recursively imports and populates all the sub-packages contained in the root package.</span></p>




            </div>
          </div>
        </div>



</div>


</body>
</html>
